﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:SNSpirit.Views.Notification"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib">

    <Style x:Key="DefaultNotificationContainerStyle" TargetType="{x:Type local:NotificationContainer}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:NotificationContainer}">
                    <Border>
                        <Grid>
                            <!-- main region -->
                            <Grid x:Name="MainContentLayer">
                                <Grid.RowDefinitions>
                                    <!-- main content -->
                                    <RowDefinition />
                                    <!-- background notification -->
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.Effect>
                                    <BlurEffect KernelType="Gaussian" Radius="0" RenderingBias="Performance" />
                                </Grid.Effect>
                                <!-- contents -->
                                <ContentControl Content="{TemplateBinding Content}" Grid.Row="0" />
                                <local:BackgroundNotification x:Name="BackgroundNotificationControl" Grid.Row="1" />
                            </Grid>
                            <!-- application notification region -->
                            <Grid x:Name="ApplicationNotificationLayer">

                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:NotificationContainer}" BasedOn="{StaticResource ResourceKey=DefaultNotificationContainerStyle}" />

</ResourceDictionary>